<?php
/*
 * IMPORTANT:
 *
 *  DO NOT modify this file.
 *
 *  To change your settings, edit:  settings.inc.php
 *
 */

//$userinfo = posix_getpwuid(fileowner(__FILE__));
$userinfo = array('name'=>'Matty');

$SETTINGS = array(
		'TITLE'        => "Blog",
		'DESCRIPTION'  => null,
		'AUTHOR'       => $userinfo['name'],
		'AUTHOR_EMAIL' => null,
		'ADDRESS'      => dirname($_SERVER['PHP_SELF']),

		'CUSTOM_ICON'  => null,
		'FAVICON'      => '',

		'ENTRY_PATH'   => 'blog-entries/',
		'LIBRARY_PATH' => 'blog-lib/',
);

include('settings.inc.php');

// (Maybe) build FAVICON from CUSTOM_ICON
if ($SETTINGS['CUSTOM_ICON']) {
	$SETTINGS['FAVICON'] = '<link rel="shortcut icon" href="' . $SETTINGS['CUSTOM_ICON'] . '" type="image/x-icon">
<link rel="icon" href="' . $SETTINGS['CUSTOM_ICON'] . '" type="image/x-icon">
';
}

// Make sure ADDRESS has a trailing slash
if ($SETTINGS['ADDRESS'] && !preg_match('|/$|', $SETTINGS['ADDRESS'])) {
	$SETTINGS['ADDRESS'] .= '/';
}

// Make sure ENTRY_PATH has a trailing slash
if ($SETTINGS['ENTRY_PATH'] && !preg_match('|/$|', $SETTINGS['ENTRY_PATH'])) {
	$SETTINGS['ENTRY_PATH'] .= '/';
}

// Make sure LIBRARY_PATH has a trailing slash
if ($SETTINGS['LIBRARY_PATH'] && !preg_match('|/$|', $SETTINGS['LIBRARY_PATH'])) {
	$SETTINGS['LIBRARY_PATH'] .= '/';
}

